Repository navigation
Conversation
- WriteCreate / WriteMessage send a message to an AI SRE session, with optional surface and delivery_mode (reply_only) and file parts. - UploadAttachment posts a file to /safari/attachment/upload and returns a SessionAttachment whose FilePart() can be attached to a message. - Subscribe opens the /safari/session/subscribe SSE stream with a resume cursor; NewSessionFrameReader decodes frames, and stream errors surface as SessionStreamError. The stream uses a client copy without a timeout. - openStream is shared by export and subscribe.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the AI SRE session conversation surface to the SDK:
WriteCreate/WriteMessagesend a message to a session, with optionalsurface,delivery_mode(reply_only) and file parts.UploadAttachmentposts a file to/safari/attachment/upload;SessionAttachment.FilePart()turns the result into a message part.Subscribeopens the/safari/session/subscribeSSE stream with a resume cursor (no client timeout);NewSessionFrameReaderdecodes frames; stream errors surface asSessionStreamError.openStreamis shared by export and subscribe.go test ./...and golangci-lint v2.13.0: 0 issues.Needed by the
flashduty safari send/safari watchCLI commands; a release tag is needed before the CLI PR can drop its local replace.